package com.foreknow.elm.po;

import java.util.List;

/**
 * @author shkstart
 * @create 2021-08-26 13:49
 */
public class Orders {
    private int orderId;  //订单编号
    private String userId; //用户编号
    private int businessId; //商家编号
    private String orderDate; //订购日期
    private double orderTotal;  //订单总价
    private int daId;   //送货地址编号
    private int orderState;  //订单状态 0 未支付  1 已支付
    private List<OrderDetailet> list;  //一对多关联关系
    private Business business =new Business();

    public Business getBusiness() {
        return business;
    }

    public void setBusiness(Business bussiness) {
        this.business = bussiness;
    }

    public int getDaId() {
        return daId;
    }

    public void setDaId(int daId) {
        this.daId = daId;
    }

    public List<OrderDetailet> getList() {
        return list;
    }

    public void setList(List<OrderDetailet> list) {
        this.list = list;
    }


    public Orders() {
    }

    public int getOrderId() {
        return orderId;
    }

    public void setOrderId(int orderId) {
        this.orderId = orderId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public int getBusinessId() {
        return businessId;
    }

    public void setBusinessId(int businessId) {
        this.businessId = businessId;
    }

    public String getOrderDate() {
        return orderDate;
    }

    public void setOrderDate(String orderDate) {
        this.orderDate = orderDate;
    }

    public double getOrderTotal() {
        return orderTotal;
    }

    public void setOrderTotal(double orderTotal) {
        this.orderTotal = orderTotal;
    }




    public int getOrderState() {
        return orderState;
    }

    public void setOrderState(int orderState) {
        this.orderState = orderState;
    }
}
